<template>
    <div>
        <van-nav-bar title="我的页面" />
        <div class="js">
            <van-image class="img" round width="10rem" height="10rem" src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg" />
            <div class="xm">
                <ul>
                    <li><span>名字:{{username }}</span></li>
                    <li><span>邮箱2990322633@qq.com</span></li>
                    <li><span>介绍：我很喜欢他 包括他的一切</span></li>
                </ul>
            </div>
        </div>
        <van-cell title="我的订单" is-link @click="dd" />
        <van-cell title="全部订单" is-link @click="qb"  />
        <van-cell title="我的资金卷" is-link />
        <van-cell title="我的发票" is-link />
        <van-cell title="账户信息" is-link />
        <van-cell title="关于我们" is-link />
        <van-cell title="物流" @click="wl"  is-link />
        <van-cell title="未支付" @click="djs"  is-link />
    </div>
</template>

<script setup>
let username=localStorage.getItem('username')
import { useRouter } from 'vue-router';
const router = useRouter()
const dd=()=>{
    router.push('/dd')
}
const wl=()=>{
    router.push('/wl')
}
const djs=()=>{
    router.push('/djs')
}
const qb=()=>{
    router.push('/qb')
}
</script>

<style lang="scss" scoped>
.js{
    width: 300px;
    height: 200px;
    .img{
        width: 10px;
        height: 10px;
        float: left;
    }
    .xm{
        width: 200px;
        height: 200px;
        float: right;
    }
}

</style>